package com.xkdx.caipiao.presistence.trad;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xkdx.caipiao.module.network.AbsModule;

public class TradModule extends AbsModule {
	public String code = "";
	public String message = "";

	@Override
	public void parseData() throws Exception {
		try {

			backJson = (JSONArray) result;
			for (int i = 0; i < backJson.size(); i++) {
				jsonObj = (JSONObject) backJson.get(i);
				code = jsonObj.getString("Code");
				message = jsonObj.getString("Message");

			}
		} catch (Exception e) {
			// to do define a exception include all parseException
			throw e;
		}

	}

}
